You have to create an instance of your class before you can connect it to other objects in your interface. How you create an instance of your class depends on whether it has a user interace; that is, whether it inherits from NSView.
To create an instance of your class, do the steps in one of the following sections.
If your class does not inherit from NSView:
If your class does inherit from NSView:
If you subclass NSView directly, you cannot set that class's attributes in the Inspector panel. If you subclass an NSView subclass (such as NSButton or NSTextField), however, you can still set that class's attributes in the Inspector panel.
If you're subclassing an NSView subclass (such as NSButton or NSTextField), drag the object that represents that class (that is, the button or the text field) from the palette window onto your interface's window. If you're subclassing NSView directly, drag the CustomView object on the Views palette.